package com.jrx.mservices;

import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;

/**
 * 消费客户端负载均衡启动类
 *
 * @author zwg
 * @create 2018-03-06 17:25
 */
/* @SpringCloudApplication 包含如下三个注解，这也意味着一个Spring Cloud标准应用应包含服务发现以及断路器
@SpringBootApplication
@EnableDiscoveryClient
@EnableCircuitBreaker   //or @EnableHystrix
*/
@SpringCloudApplication
public class ConsumeRibbonHystrixApplication {


    public static final void main(String[] args){
        new SpringApplication(ConsumeRibbonHystrixApplication.class).run(args);
    }

}
